<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"
	trimDirectiveWhitespaces="true"%>
<%@ include file="layout/taglib.jsp" %>
	
<c:if test="${sessionScope.login eq 'ok'}">
	<jsp:useBean id="mdao" class="jech913.dao.MemberDAO"/>
	<c:set var="mvo" value="${mdao.showMember(sessionScope.userid)}"/>
</c:if>

<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>:: JSP 프로젝트 v1 ::</title>
<link href="css/normalize" rel="stylesheet">
<link href="css/jech913.css" rel="stylesheet">
<style type="text/css">
#updatefrm {
	width: 365px;
	padding-top:120px;
}
#updatefrm label{
	width: 120px;
	text-align:right;
	font-weight:bold;
	display:inline-block;
	padding:0 10px 0 0;
}
#updatefrm div{
	margin:10px 10px;
}
</style>
</head>

<body>
	<jsp:include page="/layout/header.jsp" />
	

	<div id="contents">
		<h2>:: 회원수정 ::</h2>
		<form name="updatefrm" id="updatefrm" class="centerme">
			<div><!-- disabled:서버로 넘어가지 않음 readonly:서버로 넘어감-->
				<label for="userid">아이디</label><input type="text" name="userid"
					id="userid" readonly value="${sessionScope.userid}"/>
			</div>
			<div>
				<label for="passwd">비밀번호</label><input type="text" name="passwd"
					id="passwd" />
			</div>
			<div>
				<label for="repwd">비밀번호확인</label><input type="text" name="repasswd"
					id="repasswd" />
			</div>
			<div>
				<label for="name">이름</label><input type="text" name="name" id="name" 
				value="${mvo.name}"/>
			</div>
			<div>
				<label for="email">전자우편</label><input type="email" name="email"
					id="email"  value="${mvo.email}"/>
			</div>
			<div>
				<label></label>
				<button type="button" id="updateokbtn">수정완료</button>
			</div>
		</form>
	</div>

	<jsp:include page="/layout/footer.jsp" />

	<script type="js/jquery-1.11.1.min.js"></script>
	<script type="js/jech913.js"></script>
	
</body>
</html>